//

// (  )
//

package com.tools.acceleratecore.logic.accelerate.process.impl;

import android.content.Context;
import com.tools.acceleratecore.AccelerateCoreFactory;
import com.tools.acceleratecore.logic.accelerate.process.intf.IProcessKiller;
import com.tools.acceleratecore.xlib.util.UtilProcess;

public class ProcessKillerRoot implements IProcessKiller {
    private Context mContext = null;
    private int mProcessID = 0;

    public ProcessKillerRoot() {
        this.mContext = AccelerateCoreFactory.getApplication();
        this._init();
    }

    private void _init() {
    }

    public boolean kill() {
        return UtilProcess.killProcessWithRoot(this.mProcessID);
    }

    public void setProcessID(int nProcessID) {
        this.mProcessID = nProcessID;
    }
}
